<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'login2.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<center>
	<img alt="" src="images/login.ico">
		<h1>用户登录</h1>
		<s:fielderror cssStyle="color:red"></s:fielderror>
		<form action="<%=path%>/user/login.action" method="post">
			<label>用户名</label> <input type="text" name="account" value=""><br>
			<label>密码</label> <input type="password" name="password"><br>
			<label>邮箱</label> <input type="text" name="email"><br>
			<input type="submit" value="登录">
		</form>
		<hr>
		<br>
		<%out.println("admin path: " + path); %><br>
		<a href="<%=path%>/admin/admin.jsp">管理员登录</a><br>
</body>
</center>
</html>
